package com.yunfeng.learning.controller;

import com.yunfeng.learning.param.LoginParam;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static org.springframework.web.bind.annotation.RequestMethod.DELETE;
import static org.springframework.web.bind.annotation.RequestMethod.POST;

@Api(tags = "授权接口", description = "登入登出Api")
@RestController
@RequestMapping(path = "/authentications")
public class AuthenticationController implements AuthenticationApi{
    @RequestMapping(method = POST)
    @Override
    public String login(@RequestBody LoginParam loginParam) {
        return null;
    }

    @RequestMapping(method = DELETE, path = "/{id}")
    @Override
    public String logout(@PathVariable String id) {
        return null;
    }
}
